package com.github.easyms.common.vo.auth;

import com.github.easyms.common.constant.GlobalConstants;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 修改密码视图对象
 *
 * @author Leo.Liao
 * @date 2020-04-11 17:23:29
 */
@Data
public class ResetPasswordVo {

    @ApiModelProperty(hidden = true)
    @NotBlank
    private String userId;
    @NotBlank
    private String oldPwd;
    @Pattern(regexp = GlobalConstants.Settings.PWD_FORMAT)
    private String newPwd;

}
